﻿using LJ.WebApi.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LJ.WebApi.Abstractions;


public interface IWebApiActionHandler
{
    public int Seq { get; }
    /// <summary>
    /// 之前
    /// </summary>
    /// <param name="serviceProvider"></param>
    /// <param name="handlerType"></param>
    /// <returns></returns>
    Task<WebApiResult<object>?> BeforeExecuteAsync(IServiceProvider serviceProvider, Type handlerType);
    /// <summary>
    /// 之后
    /// </summary>
    /// <param name="serviceProvider"></param>
    /// <param name="handlerType"></param>
    /// <returns></returns>
    Task<WebApiResult<object>?> AfterExecuteAsync(IServiceProvider serviceProvider, Type handlerType);
}